package com.hzhr.iot.collect.constant;

/**
 * 通信方式
 * @author 48310
 *
 */
public enum CommModeEnum {
	HUAWEI(20000001),
	SOCKET_SERVICE(20000002);

	private int id;
	private CommModeEnum(int id) {
		this.id = id;
	}
	
	public int getId() {
		return id;
	}

	public static CommModeEnum getEnumById(int id) {
		for (CommModeEnum value : CommModeEnum.values()) {
			if (value.getId() == id) {
				return value;
			}
		}
		return null;
	}
}
